﻿namespace com.stifel.BranchMgmtDao
{
    public partial class StifelBranchLease : IBranchRelated
    {
        #region Fields

        Notifications _Notifications;

        #endregion Fields

        #region Properties

        public Notifications Notifications
        {
            get
            {
                if ( string.IsNullOrEmpty( this.BranchLeaseNotification ) )
                    _Notifications = new Notifications( );
                else
                    _Notifications = Notifications.Deserialize( this.BranchLeaseNotification );
                return _Notifications;
            }
            set
            {
                this.OnPropertyChanging( "Notifications", this._Notifications );
                if ( value == null )
                    this.BranchLeaseNotification = string.Empty;
                else
                    this.BranchLeaseNotification = value.Serialize( );
                this.OnPropertyChanged( "Notifications" );
            }
        }

        #endregion Properties
    }
}